From 8fde62a82bdd1fd92b514a6e2950bb241dd977f9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Wed, 3 Dec 2025 08:26:33 +0100 Subject: [PATCH] router: rename router_clear_ra_pio MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This function clears the expired RA PIOs, so router_clear_expired_ra_pio is a better name. Link: https://github.com/openwrt/odhcpd/pull/336 Signed-off-by: Álvaro Fernández Rojas --- src/router.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/router.c b/src/router.c index 31a4c33..63bb3db 100644 --- a/src/router.c +++ b/src/router.c @@ -526,7 +526,7 @@ static void router_add_ra_pio(struct interface *iface, pio->length); } -static void router_clear_ra_pio(time_t now, +static void router_clear_expired_ra_pio(time_t now, struct interface *iface) { size_t i = 0, pio_cnt = iface->pio_cnt; @@ -536,7 +536,7 @@ static void router_clear_ra_pio(time_t now, struct ra_pio *cur_pio = &iface->pios[i]; if (ra_pio_expired(cur_pio, now)) { - info("rfc9096: %s: clear %s/%u", + info("rfc9096: %s: clear expired %s/%u", iface->ifname, inet_ntop(AF_INET6, &cur_pio->prefix, ipv6_str, sizeof(ipv6_str)), cur_pio->length); @@ -611,7 +611,7 @@ static int send_router_advert(struct interface *iface, const struct in6_addr *fr bool valid_prefix = false; char buf[INET6_ADDRSTRLEN]; - router_clear_ra_pio(now, iface); + router_clear_expired_ra_pio(now, iface); memset(&adv, 0, sizeof(adv)); adv.h.nd_ra_type = ND_ROUTER_ADVERT; -- 2.30.2